import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { StepsComponent } from "@app/pipeline/step/step.component";
import { FlexsComponent } from "@app/pipeline/flex/flex.component";
import { FlexsTimelineComponent } from "./flextimeline/flex-timeline.component";
import { DzdSidetaskComponent } from "./planfordzd/dzd-sidetask.component";
import { JjdDeliveryTasksComponent } from "./planforjjd/jjd-delivery-tasks.component";

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: "",
        children: [
          {
            path: "step",
            component: StepsComponent,
            data: { permission: "Pages.Pipeline.Step" },
          },
          {
            path: "flex",
            component: FlexsComponent,
            data: { permission: "Pages.Pipeline.Flex" },
          },
          {
            path: "flextimeline",
            component: FlexsTimelineComponent,
            data: { permission: "Pages.Pipeline.Flextimeline" },
          },
          {
            path: 'dzdplan',
            component: DzdSidetaskComponent,
            data: { permission: 'Pages.Dzhd' },
          },
          {
            path: 'jjdplan',
            component: JjdDeliveryTasksComponent,
            data: { permission: 'Pages.Jjd' },
        },
        ],
      },
    ]),
  ],
  exports: [RouterModule],
})
export class PipelineRoutingModule {}
